class Privacy < ActiveRecord::Base
    belongs_to :entity
    
    before_create :ensure_no_existing_privacy
    
    def ensure_no_existing_privacy #Created by Adrian
      Privacy.find_by_entity_id(self.entity_id).nil?
    end
end
